package com.nutiteq.mapper.forms;

import javax.microedition.lcdui.Graphics;

import com.nutiteq.components.Point;
import com.nutiteq.ui.Cursor;

public class BullsEyeCursor implements Cursor {
  public void paint(final Graphics g, final int screenX, final int screenY, final int displayWidth,
      final int displayHeight) {
    g.setClip(screenX - 15, screenY - 15, 31, 31);
    g.setColor(0xFFFF0000);
    g.drawArc(screenX - 15, screenY - 15, 30, 30, 0, 360);
    g.setColor(0xFFFF0000);
    g.fillArc(screenX - 5, screenY - 5, 10, 10, 0, 360);
  }

  public Point getPointOnDisplay(final int displayWidth, final int displayHeight) {
    return new Point(displayWidth / 2, displayHeight / 2);
  }
}
